package co.gov.medellin.ssti.sub.model.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import co.gov.medellin.ssti.sub.model.dao.ErrorDAO;
import co.gov.medellin.ssti.sub.model.dao.exception.DAOException;
import co.gov.medellin.ssti.sub.model.service.ErrorService;

@Service
public class ErrorServiceImpl implements ErrorService {
	@Autowired
	ErrorDAO errorDAOImpl2;

	public int insertError(String strName, String strDescription) {
		try {
			return errorDAOImpl2.insertError(strName, strDescription);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

}
